package com.example.lanqiaodemo1.JavaTest;

import java.util.Scanner;

public class Calculate1 {
    int sum = 0;
    double Averger;
    Scanner sc=new Scanner(System.in);
    int count= sc.nextInt();
    int[] arrey=new int[count];



    int[] getArrey(){
        for (int i=0;i<count;i++){
            arrey[i]=sc.nextInt();
        }
        return arrey;
    }


    public int getSum() {
        for (int i = 0; i < arrey.length; i++) {
            sum += arrey[i];
        }
        return sum;
    }

    public double getAcerage(){
        Averger=(double) sum/arrey.length;
        return (double) sum/arrey.length;
    }


    public void FindBigger(){
        for (int i = 0; i < arrey.length; i++) {
            if(arrey[i]>Averger)
                System.out.println("比平均数大的数是： "+arrey[i]);
        }
    }



    public static void main(String[] args) {
        Calculate1 calculate1 = new Calculate1();
        calculate1.getArrey();
        System.out.println("和是： "+calculate1.getSum());
        System.out.println("平均数是： "+calculate1.getAcerage());
        calculate1.FindBigger();
    }





}
